﻿using System.Diagnostics;

namespace FizzBuzz
{
    public interface ITrace
    {
        void TraceSelf();
    }

    public class A : ITrace
    {
        public virtual void TraceSelf()
        {
            System.Console.WriteLine("A");
        }
    }

    public class B : A, ITrace
    {
        public new void TraceSelf()
        {
            System.Console.WriteLine("B");
        }
    }

    public class C: B, ITrace
    {
        public new void TraceSelf()
        {
            System.Console.WriteLine("C");
        }
    }
}